//
//  HMTextFiled.swift
//  WeiBoXR
//
//  Created by acer on 16/9/20.
//  Copyright © 2016年 acer. All rights reserved.
//

import UIKit
@IBDesignable
class HMTextFiled: UITextField {

    @IBInspectable var borderColor: UIColor? {
        didSet {
            self.layer.borderColor = borderColor?.cgColor
        }
    }
    
    @IBInspectable var borderWidth: CGFloat = 0 {
        didSet {
            self.layer.borderWidth = borderWidth
        }
    }
    
    @IBInspectable var cornerRadius: CGFloat = 0 {
        didSet {
            self.layer.cornerRadius = cornerRadius
            self.layer.masksToBounds = true
        }
    }

}
